package huanghui.netstorage.modle;

import java.util.HashSet;
import java.util.Set;

/**
 * Virtualfile entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class VirtualFile implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = -8704715368411426092L;
	private Integer id;
	private VirtualFile parentFile;
	private EntryFile entryFile;
	private User user;
	private String md5;
	private String name;
	private Integer type;
	private String path;
	private Long size;
	private Long modifyTime;
	private Set childFiles = new HashSet(0);

	// Constructors

	/** default constructor */
	public VirtualFile() {
	}

	/** minimal constructor */
	public VirtualFile(String name, Integer type, String path) {
		this.name = name;
		this.type = type;
		this.path = path;
	}

	/** full constructor */
	public VirtualFile(VirtualFile prentFile, EntryFile entryFile, User user,
			String md5, String name, Integer type, String path, Long size,
			Long modifyTime, Set childFiles) {
		this.parentFile = prentFile;
		this.entryFile = entryFile;
		this.user = user;
		this.md5 = md5;
		this.name = name;
		this.type = type;
		this.path = path;
		this.size = size;
		this.modifyTime = modifyTime;
		this.childFiles = childFiles;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
		}

	public User getUser() {
		return this.user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public String getMd5() {
		return this.md5;
	}

	public void setMd5(String md5) {
		this.md5 = md5;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getType() {
		return this.type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getPath() {
		return this.path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public Long getSize() {
		return this.size;
	}

	public void setSize(Long size) {
		this.size = size;
	}

	public Long getModifyTime() {
		return this.modifyTime;
	}

	public void setModifyTime(Long modifyTime) {
		this.modifyTime = modifyTime;
	}

	public VirtualFile getParentFile() {
		return parentFile;
	}

	public void setParentFile(VirtualFile parentFile) {
		this.parentFile = parentFile;
	}

	public EntryFile getEntryFile() {
		return entryFile;
	}

	public void setEntryFile(EntryFile entryFile) {
		this.entryFile = entryFile;
	}

	public Set getChildFiles() {
		return childFiles;
	}

	public void setChildFiles(Set childFiles) {
		this.childFiles = childFiles;
	}



}